package com.aspose.cells;

class zbic extends zck {
   zbic(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      com.aspose.cells.b.a.b.a.ze var2 = new com.aspose.cells.b.a.b.a.ze();
      float var3 = (float)zbif.a(zbif.b(Math.atan((double)(var1.i() / var1.h()))));
      com.aspose.cells.b.a.b.zo[] var4 = new com.aspose.cells.b.a.b.zo[12];
      float var5 = 0.0F;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var5 = Math.min(var1.h(), var1.i()) * com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F;
         } else {
            var5 = Math.min(var1.h(), var1.i()) * 0.24153F;
         }
      } else {
         var5 = Math.min(var1.h(), var1.i()) * 0.24153F;
      }

      if (var5 <= 0.0F) {
         var4[0] = new com.aspose.cells.b.a.b.zo(0.24F * var1.h() + this.g, 0.24F * var1.i() + this.h);
         var4[1] = new com.aspose.cells.b.a.b.zo(var1.h() * 0.76F + this.g, var1.i() * 0.24F + this.h);
         var4[2] = new com.aspose.cells.b.a.b.zo(0.76F * var1.h() + this.g, var1.i() * 0.76F + this.h);
         var4[3] = new com.aspose.cells.b.a.b.zo(0.24F * var1.h() + this.g, var1.i() * 0.76F + this.h);
         var2.a(var4[0], var4[2]);
         var2.j();
         var2.a(var4[1], var4[3]);
         var2.j();
         return var2;
      } else {
         float var6 = 0.0F;
         float var7 = 0.0F;
         float var8 = 0.0F;
         var8 = var5 / 2.0F;
         var6 = (float)((double)var8 * Math.sin((double)var3));
         var7 = (float)((double)var8 * Math.cos((double)var3));
         float var9 = 0.24F * var1.h();
         float var10 = 0.24F * var1.i();
         float var11 = var8 / (float)Math.cos((double)var3);
         float var12 = var8 / (float)Math.sin((double)var3);
         var4[0] = new com.aspose.cells.b.a.b.zo(this.g + var6 + var9, this.h + var10 - var7);
         var4[1] = new com.aspose.cells.b.a.b.zo(this.g + var1.h() / 2.0F, this.h + var1.i() / 2.0F - var11);
         var4[2] = new com.aspose.cells.b.a.b.zo(this.g + var1.h() / 2.0F + var9 - var6, this.h + var10 - var7);
         var4[3] = new com.aspose.cells.b.a.b.zo(this.g + var1.h() / 2.0F + var9 + var6, this.h + var10 + var7);
         var4[4] = new com.aspose.cells.b.a.b.zo(this.g + var1.h() / 2.0F + var12, this.h + var1.i() / 2.0F);
         var4[5] = new com.aspose.cells.b.a.b.zo(this.g + var1.h() / 2.0F + var9 + var6, this.h + var1.i() - (var10 + var7));
         var4[6] = new com.aspose.cells.b.a.b.zo(this.g + var1.h() / 2.0F + var9 - var6, this.h + var1.i() - (var10 - var7));
         var4[7] = new com.aspose.cells.b.a.b.zo(this.g + var1.h() / 2.0F, this.h + var1.i() / 2.0F + var11);
         var4[8] = new com.aspose.cells.b.a.b.zo(this.g + var9 + var6, this.h + var1.i() - (var10 - var7));
         var4[9] = new com.aspose.cells.b.a.b.zo(this.g + var9 - var6, this.h + var1.i() - (var10 + var7));
         var4[10] = new com.aspose.cells.b.a.b.zo(this.g + var1.h() / 2.0F - var12, this.h + var1.i() / 2.0F);
         var4[11] = new com.aspose.cells.b.a.b.zo(this.g + var9 - var6, this.h + var10 + var7);
         var2.a(var4[0], var4[1]);
         var2.a(var4[1], var4[2]);
         var2.a(var4[2], var4[3]);
         var2.a(var4[3], var4[4]);
         var2.a(var4[4], var4[5]);
         var2.a(var4[5], var4[6]);
         var2.a(var4[6], var4[7]);
         var2.a(var4[7], var4[8]);
         var2.a(var4[8], var4[9]);
         var2.a(var4[9], var4[10]);
         var2.a(var4[10], var4[11]);
         var2.a(var4[11], var4[0]);
         var2.i();
         return var2;
      }
   }
}
